package com.nec.recommend.common;

public enum ResultCode {
    SUCCESS(200, "操作成功"), UN_AUTHENTICATION(401, "当前会话已失效，请登录后重试！"), FAILED(500, "操作失败"), NOT_FOUND(404, "资源未找到"), NO_PERMISSION(403, "您无权访问");

    private final int code;
    private final String message;

    ResultCode(int code, String message) {
        this.code = code;
        this.message = message;
    }

    public int getCode() {
        return code;
    }

    public String getMessage() {
        return message;
    }
}
